THE INTERNET'S
FILE API

THE INTERNET'S
FILE API

Add file uploads and retrieval in minutes so you can focus on your app —
because you’ve got better things to code than infrastructure.

Add file uploads and retrieval in minutes so you can focus on your app — because you’ve got better things to code than infrastructure.

Add file uploads and retrieval in minutes so you can focus on your app — because you’ve got better things to code than infrastructure.

TRUSTED BY 600,000 DEVELOPERS

TRUSTED BY 600,000 DEVELOPERS

POWER TOOLS FOR DEVELOPERS

ACCESS CONTROLS

Simple access controls through pre-signed URLs, limited use keys, and file groups.

ACCESS CONTROLS

Simple access controls through pre-signed URLs, limited use keys, and file groups.

IPFS STORAGE

Achieve secure, scalable storage with IPFS's decentralized infrastructure.

IPFS STORAGE

Achieve secure, scalable storage with IPFS's decentralized infrastructure.

KEY-VALUE DATABASE

Simplify file data management and retrieval for super fast app development.

KEY-VALUE DATABASE

Simplify file data management and retrieval for super fast app development.

GROUPS

Improve data handling and team workflows.

GROUPS

Improve data handling and team workflows.

Next-Level Uploads, No Sweat

The long road

The long road

const bucketName = BUCKET_NAME;
const bucketRegion = BUCKET_REGION;
const IdentityPoolId = IDENTITY_POOL_ID;

 AWS.config.update({
                region: bucketRegion,
                credentials: new AWS.CognitoIdentityCredentials({
                    IdentityPoolId: IdentityPoolId
                })
            });

            var s3 = new AWS.S3({
                apiVersion: '2006-03-01',
                params: {Bucket: bucketName}
        });

function s3upload() {
   var files = document.getElementById('fileUpload').files;
   if (files) 
   {
     var file = files[0];
     var fileName = file.name;
     var filePath = 'my-first-bucket-path/' + fileName;
     var fileUrl = 'https://' + bucketRegion + '.amazonaws.com/my-    first-bucket/' +  filePath;
     s3.upload({
        Key: filePath,
        Body: file,
        ACL: 'public-read'
        }, function(err, data) {
        if(err) {
        reject('error');
        }
        alert('Successfully Uploaded!');
        }).on('httpUploadProgress', function (progress) {
        var uploaded = parseInt((progress.loaded * 100) / progress.total);
        $("progress").attr('value', uploaded);
      });
   }
};

The Pinata shortcut

import { PinataSDK } from "pinata";

const pinata = new PinataSDK({
  pinataJwt: process.env.PINATA_JWT!,
  pinataGateway: "example-gateway.mypinata.cloud",
});

const file = new File(["hello world!"], "hello.txt", { type: "text/plain" })
const upload = await pinata.upload.file(file)

The Pinata shortcut

import { PinataSDK } from "pinata";

const pinata = new PinataSDK({
  pinataJwt: process.env.PINATA_JWT!,
  pinataGateway: "example-gateway.mypinata.cloud",
});

const file = new File(["hello world!"], "hello.txt", { type: "text/plain" })
const upload = await pinata.upload.file(file)

GET STARTED IN < 2 MINS, FOR REAL

SDK

Add effortless uploads to any app with our Typescript SDK.

Add effortless uploads to any app with our Typescript SDK.

npm i pinata

Next.JS Template

Spin up a new IPFS-powered app in under 20 seconds.

Spin up a new IPFS-powered app in under 20 seconds.

npx create-pinata-app

npx create-pinata-app

TIPS, TRICKS, & NEWS

TUTORIALS

The Easiest Alternative to S3

Developers need file storage. Simple. However, the options available for storing and retrieving files…

Developers need file storage. Simple. However, the options available for storing and retrieving files…

TUTORIALS

How To Build a Simple Podcast Hosting App

Ever find yourself in “Founder Mode” but lack the platform to tell people about it? Look no further!

Ever find yourself in “Founder Mode” but lack the platform to tell people about it? Look no further!

TUTORIALS

How To Build An AI-Powered App To Chat With Your CSVs

How many millions of dollars have been made on “Chat With Your PDF” style apps? Chatting with…

How many millions of dollars have been made on “Chat With Your PDF” style apps? Chatting with…

WHAT DEVELOPERS ARE SAYING

const testimonial = {

feedback: “The Pinata team is amazing to work with! They provide us with awesome support, and features we've been talking about are very quickly prioritized and launched.

name: "Kartik Patel",

title: "Head of protocol",

};

const testimonial = {

feedback: “Pinata has eliminated all the complication of hosting content which lets us develop things faster with more confidence. Pinata makes easy so we can focus on delivering best-in-class loyalty programs.

name: "Danny Franklin",

title: "CEO",

};

const testimonial = {

feedback: “Pinata has been an essential piece to making both ddocs.new and Fileverse Portals reliable and secure. Working with the team has been a delight.

name: "Andreas Tsamados",

title: "Co-founder",

};

const testimonial = {

feedback: “Pinata has been great. A very comprehensive and advanced solution, with team members supporting our project from the get-go.

name: "Stuart Burton",

title: "Co-founder",

};

WHAT DEVELOPERS ARE SAYING

const testimonial = {

feedback: “The Pinata team is amazing to work with! They provide us with awesome support, and features we've been talking about are very quickly prioritized and launched.

name: "Kartik Patel",

title: "Head of protocol",

};

const testimonial = {

feedback: “Pinata has eliminated all the complication of hosting content which lets us develop things faster with more confidence. Pinata makes easy so we can focus on delivering best-in-class loyalty programs.

name: "Danny Franklin",

title: "CEO",

};

const testimonial = {

feedback: “Pinata has been an essential piece to making both ddocs.new and Fileverse Portals reliable and secure. Working with the team has been a delight.

name: "Andreas Tsamados",

title: "Co-founder",

};

const testimonial = {

feedback: “Pinata has been great. A very comprehensive and advanced solution, with team members supporting our project from the get-go.

name: "Stuart Burton",

title: "Co-founder",

};

WHAT DEVELOPERS ARE SAYING

const testimonial = {

feedback: “The Pinata team is amazing to work with! They provide us with awesome support, and features we've been talking about are very quickly prioritized and launched.

name: "Kartik Patel",

title: "Head of protocol",

};

const testimonial = {

feedback: “Pinata has eliminated all the complication of hosting content which lets us develop things faster with more confidence. Pinata makes easy so we can focus on delivering best-in-class loyalty programs.

name: "Danny Franklin",

title: "CEO",

};

const testimonial = {

feedback: “Pinata has been an essential piece to making both ddocs.new and Fileverse Portals reliable and secure. Working with the team has been a delight.

name: "Andreas Tsamados",

title: "Co-founder",

};

const testimonial = {

feedback: “Pinata has been great. A very comprehensive and advanced solution, with team members supporting our project from the get-go.

name: "Stuart Burton",

title: "Co-founder",

};

WHAT DEVELOPERS ARE SAYING

const testimonial = {

feedback: “The Pinata team is amazing to work with! They provide us with awesome support, and features we've been talking about are very quickly prioritized and launched.

name: "Kartik Patel",

title: "Head of protocol",

};

const testimonial = {

feedback: “Pinata has eliminated all the complication of hosting content which lets us develop things faster with more confidence. Pinata makes easy so we can focus on delivering best-in-class loyalty programs.

name: "Danny Franklin",

title: "CEO",

};

const testimonial = {

feedback: “Pinata has been an essential piece to making both ddocs.new and Fileverse Portals reliable and secure. Working with the team has been a delight.

name: "Andreas Tsamados",

title: "Co-founder",

};

const testimonial = {

feedback: “Pinata has been great. A very comprehensive and advanced solution, with team members supporting our project from the get-go.

name: "Stuart Burton",

title: "Co-founder",

};

START BUILDING WITH ZERO-COST CODING

START BUILDING WITH ZERO-COST CODING

500 Pinned Files

Total

1GB Storage

Total

1 Gateway

Total

10G Bandwidth

Per month

10k Requests

Per month

THE INTERNET'S FILE API

Copyright © 2024 Pinata | All rights reserved
Privacy policy | Terms & conditions | Acceptable use | DMCA

THE INTERNET'S FILE API

Copyright © 2024 Pinata | All rights reserved
Privacy policy | Terms & conditions | Acceptable use | DMCA

THE INTERNET'S FILE API

Copyright © 2024 Pinata | All rights reserved
Privacy policy | Terms & conditions | Acceptable use | DMCA

THE INTERNET'S FILE API

Copyright © 2024 Pinata | All rights reserved
Privacy policy | Terms & conditions | Acceptable use | DMCA